<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of checkDASResponse</title>
  <meta name="keywords" content="checkDASResponse">
  <meta name="description" content="CHECKDASRESPONSE used by DASMiner Browser to create a message box about the status of a DAS query">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<div><a href="../index.html">Home</a> &gt;  <a href="index.html">code</a> &gt; checkDASResponse.m</div>

<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
<td align="right"><a href="index.html">Index for code&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->

<h1>checkDASResponse
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>CHECKDASRESPONSE used by DASMiner Browser to create a message box about the status of a DAS query</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function [isOkay] = checkDASResponse(xmlS,status) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> CHECKDASRESPONSE used by DASMiner Browser to create a message box about the status of a DAS query
 
 SYNTAX: [isOkay] = checkDASResponse(xmlS,status)
         xmlS - struct resulted from parsing DAS XML
         status - status returned by readDASURL

 See also <a href="das_gui.html" class="code" title="function varargout = das_gui(varargin)">DAS_GUI</a>, <a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">SEARCHREGISTRY_GUI</a>, <a href="readDASURL.html" class="code" title="function [xmlStruct, xml, status] = readDASURL(dasUrl,timeout)">READDASURL</a>

    DASMiner: DAS library and browser for Matlab.
    Diogo Veiga, March 2008.</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="addNewServer.html" class="code" title="function [status] = addNewServer(uri,msgBox)">addNewServer</a>	ADDNEWSERVER adds a new DAS service for browsing within the browser</li><li><a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">searchRegistry_gui</a>	SEARCHREGISTRY_GUI is the GUI for DAS Registry search in Browser</li></ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [isOkay] = checkDASResponse(xmlS,status)</a>
0002 <span class="comment">% CHECKDASRESPONSE used by DASMiner Browser to create a message box about the status of a DAS query</span>
0003 <span class="comment">%</span>
0004 <span class="comment">% SYNTAX: [isOkay] = checkDASResponse(xmlS,status)</span>
0005 <span class="comment">%         xmlS - struct resulted from parsing DAS XML</span>
0006 <span class="comment">%         status - status returned by readDASURL</span>
0007 <span class="comment">%</span>
0008 <span class="comment">% See also DAS_GUI, SEARCHREGISTRY_GUI, READDASURL</span>
0009 <span class="comment">%</span>
0010 <span class="comment">%    DASMiner: DAS library and browser for Matlab.</span>
0011 <span class="comment">%    Diogo Veiga, March 2008.</span>
0012         
0013 isOkay = 1;
0014 <span class="keyword">if</span> (~status)
0015     msgbox(<span class="string">'DAS Registry is taking too long to respond. Increase timeout and try again.'</span>,<span class="string">'DAS Registry not responding'</span>,<span class="string">'warn'</span>);
0016     isOkay = 0;
0017     <span class="keyword">return</span>;
0018 <span class="keyword">end</span>
0019 
0020 <span class="keyword">if</span> (~isstruct(xmlS))
0021     msgbox(<span class="string">'Problem Parsing XML DAS Response'</span>,<span class="string">'Bad Parsing'</span>,<span class="string">'warn'</span>);
0022     isOkay = 0;
0023     <span class="keyword">return</span>;
0024 <span class="keyword">end</span></pre></div>
<hr><address>Generated on Tue 17-Feb-2009 16:59:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
</body>
</html>